 
  <script type="text/x-template" id="component-topic-list">  
  <section class="errormsgDiv" v-if="items.length===0">
    <p class="errormsg">\（￣︶￣）/</p>
    <p class="errormsg2">没有相关数据</p>
  </section>
  <section v-else> 

   <div class="topic-one bw" :topic-item="item.id" v-for="item in items"  @click="jump(item.type,item.id)"> 
    
    <div class="topic-head" style="padding: 0 8px"> 
        <div class="user-ico fl">  <img :src="item.user.avatarUrl" /></div> 
        <div class="user-info fl" style="margin-top: 0px">  <span class="fs-12">{{item.user.nickname}}</span>  <br /> <span class="light-color fs-10">{{item.addtime}} 发布</span> 
        </div> 
        <div class="clearfix"></div> 
   </div> 
 
     <div class="topic-content"> 
     
     <template v-if="item.type=='todolist'">
	      <div v-if="item.status == 1" class="tag fl stay">
	       待处理
	      </div> 
	      <div v-if="item.status == 2" class="tag fl doing">
	       已受理
	      </div> 
	      <div v-if="item.status == 3" class="tag fl done">
	       已关闭
	      </div> 
  	 </template>

      <div class="light" v-if="item.type=='vote'">投票截止 {{item.content_data.end_date}}</div>

      <div v-html="item.title" class="img-text fs-14"></div> 
        <!--desc   -->
        <div class="topic_content light" v-if="item.desc && item.desc !='undefined' " v-html="item.desc" ></div>
       <!--图片 -->

      <div class="clearfix"></div> 
      <div class="img-list" v-if="item.pics.length"> 
       <template v-for="image in item.pics"> 
        <img lazyloadpic="true"   :src="image+'?imageMogr2/thumbnail/500x'" /> 
       </template> 
      </div> 
     </div> 
    
    <!-- 投票 -->
    <div class="topic-act" v-if="item.type=='vote'"> 
     <div :data-good="item.goods_count" :topic-goods="item.id" :class="item.thumb_up_ed?'active':''" :data-id="item.id" v-on:click="add_goods($event)"> 
      <i class="ico-goods"></i> 
      <span class="light-color-2"><font>{{item.good_count!=0?item.good_count:&quot;&quot;}}</font> 赞</span> 
     </div> 
     
      <i class="ico ico_comment mgl12"></i> 
       <span class="light-color-2">{{item.vote_count}} 投票</span>
    
    <!--  <div class="fr light" style="margin-top: 14px;">
      {{item.addtime}}
     </div>  -->
     <div class="clearfix"></div> 
    </div> 
<!-- 其它 -->
  <div class="topic-act" v-else> 
     <div :data-good="item.goods_count" :topic-goods="item.id" :class="item.thumb_up_ed?'active':''" :data-id="item.id" v-on:click="add_goods($event)"> 
      <i class="ico-goods"></i> 
      <span class="light-color-2"><font>{{item.good_count!=0?item.good_count:" "}}</font> 赞</span> 
     </div> 
     
      <i class="ico ico_comment mgl12"></i> 
      <span class="light-color-2"><font :data-count="item.comment_count" :topic-comment="item.id">{{item.comment_count}}</font> 回复</span>
    
   <!--   <div class="fr light" style="margin-top: 14px;">
      {{item.addtime}}
     </div>  -->
     <div class="clearfix"></div> 
    </div> 
    <!--  -->

   </div> 
  </section>
 
   </script>



 